SQL ManualFunctionsString FunctionstrimOn this pagetrimtrimDescriptionSyntax:VARCHAR trim(VARCHAR str)This function removes the continuous whitespace in the string.Examplemysql> SELECT trim(' ab d ') str;+------+| str |+------+| ab d |+------+KeywordsTRIM